
$(function() {
	$("#publish-resource-to-lesson").click(function() {
		layer.open({
			type: 1,
			title: '发布课堂资源',
			fixed: false, //不固定
			maxmin: true,
			closeBtn: 1,
			scrollbar: false,
			skin: 'layui-layer-molv',
			area: ['95rem', '45rem'],
			content: $("#add-resource-publish-object")
		});
		getClassList();
	});
	
	//执行发布操作，刷新页面
	/*$("#lessonPublishResourceBtn").click(function(){
		//TODO 发布操作
		
		//for test & Please delete later
		layer.closeAll();
	});*/
	
	$("#resource-pub-record-lesson").on(" .isPublish","click",function() {
		
		//TODO 执行删除发布分配操作
		
		$(this).closest("li").remove();
		return false;
	});
	
});